import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import fire_component_msg from '@feidao/web/atom/browser/fsm/fire-component-msg';
import nodejs from "@feidao/web/atom/browser/msg/nodejs";

export default async function a011(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	//  删除
	// TODO 和列表的复选框设置的data-feidao-name保持一致
	const c_boxs = fd.data.node.querySelectorAll('[data-feidao-name="certifi"]:checked');
	if (c_boxs.length === 0) {
		fire_component_msg('zj-common-002', 'ec-001', 'fail', '请选择要删除的数据');
	} else {
		// TODO 修改组件编号
		fire_component_msg('zj-common-001', 'ec-001', { component_no: 'zj-benefit-project-001', event_no: 'ec-001' });
	}
}
